[frenchgovtenergydata] Fix IllegalArgumentException for thing type tempo#19424
[frenchgovtenergydata] Fix IllegalArgumentException for thing type tempo#19424jlaur merged 2 commits intoopenhab:mainfrom
IllegalArgumentException for thing type tempo#19424Conversation
Signed-off-by: Laurent ARNAL <laurent@clae.net>
|
Hello @clinique, I've realized that there was a mistake on modification I've made on 5.0 to add tempo tariff on frenchgovenergydata. Laurent. |
jlaur
left a comment
There was a problem hiding this comment.
I did a quick check wondering about the meaning of that empty line value, and proposed a small refactoring. Forgive me if I misunderstood the intention here.
.../main/java/org/openhab/binding/frenchgovtenergydata/internal/handler/TempoTariffHandler.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Laurent ARNAL <laurent@clae.net>
clinique
left a comment
There was a problem hiding this comment.
Nice. I discovered '.repeat'
|
It's stay to Unknow status, no other errors message displayed. |
In the log, there is a trace for the exception: java.lang.IllegalArgumentException: Incorrect data in ';;;;;;;;;;;;;;;;' |
IllegalArgumentException for thing type tempo
…`tempo` (#19424) * fix tempo tariff EMPTY_LINE format Signed-off-by: Laurent ARNAL <laurent@clae.net>
|
As a regression of #18732, I've backported the fix to 5.0.x. |
Ok, thanks a lot. Laurent. |
Fixes for tempo tariff Handler in Frenchgovtenergydata
The was an error in 5.0 in the format of EMPTY_LINE for tempo tariff.
This 1 line fix correct the issue.
Without it, the thing never come online :(